//
//  ViewController.m
//  xinyiheziTest
//
//  Created by 袁飞霞 on 16/5/9.
//  Copyright © 2016年 cn.sophietobeabetterone. All rights reserved.
//

#import "ViewController.h"
#import "TitleView.h"
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    NSArray *arr1 = [NSArray arrayWithObjects:@"礼物",@"收藏",@"专场",nil];
    NSArray *arr2 = [NSArray arrayWithObjects:@"送好友",@"凑份子",@"自己买",@"售后",@"余额",nil];
   NSArray *arr3 = [NSArray arrayWithObjects:@"全部",@"待付款",@"待送出",@"待发货",@"待确认",nil];

    TitleView *titleView = [[TitleView alloc]initTitleViewWithTitles:arr1];
    [self.view addSubview:titleView];
    CGFloat screenW = [UIScreen mainScreen].bounds.size.width;
        CGFloat screenH = [UIScreen mainScreen].bounds.size.height;
    titleView.frame = CGRectMake(0, 20, screenW, screenH);
    
}


@end
